﻿<include file='Public:header' />
 <div class="container02">
    <div class="main">
    	<div>
		 <div class="left desimg">
	 		<if condition="$agency.logo neq '' ">
           		<a href="#"><img src="{$agency.lgo}" /></a>
           	<else />
           		<a href="#"><img src="__APP__/Public/images/test01.jpg" /></a>
            </if>
            
             <div class="usercenter">
                 <a href="/Public/logout">{$agency.name} 【{$Think.lang.logout}】</a>
                 <br />
                 <a href="#">{$Think.lang.address} :{$agency.city} {$agency.road_name}-{$agency.road_number}</a>
            </div>
            
		 </div>

		<div class="right tac w620">
        <br />
			 <div class="userdata">
			 	 <span style='float: left; width:100px;'>{:L('firstname')}:</span><input type="text" class="userinput" id='sfName' style="float: left;" /><br /><br/>
			 	 <span style='float: left; width:100px;'>{:L('lastname')}:</span><input type="text" class="userinput" id='slName' style="float: left;"/><br /><br/>
			 	 <span style='float: left; width:100px;'>{:L('email')}:</span><input type="text" class="userinput" id='sEmail' style="float: left;"/><br /><br/>
                 <input id='btnSearch' type="button" value="{$Think.lang.search}" style="height: 28px" />
			 	
			 	<table class="datalist" id='userList'>
	                <thead>
	                    <td>{$Think.lang.firstname}</td>
	                    <td>{$Think.lang.lastname}</td>
	                    <td>{:L('email')}</td>
	                    <td>{$Think.lang.regist_datetime}</td>
	                    <td>{$Think.lang.download_two_dimension_code}</td>
	                </thead>
	                <tbody id='userListbody'></tbody>
                </table>
			 
			 	<input type="button" value="{$Think.lang.goback}" onclick="goback('/Agency/index');" />
			 </div>
		</div>
		</div>
	</div>
</div>
<script>
$(function(){
	//load has confirmed user list;
	var type = '1';
	loadUserList(type);
	
	$('#btnSearch').click(function(){
		var sfName = $('#sfName').val();
		var slName = $('#slName').val();
		var sEmail = $('#sEmail').val();
		loadUserList(type, sfName, slName, sEmail);
	});
});
</script>
<include file='Public:footer' />

